//数组类型
var numbers = [1, 2, 3];
var names = ["Alice", "Bob"];
console.log(numbers[1]);
console.log(numbers[1] + numbers[0]);
var user = {
    id: 1,
    name: "Alice",
    createdAt: new Date()
};
//联合类型
var id = "abc123";
id = 123; // 也有效
var currentStatus = "pending";
var aa = "zs";
var aage = 18; //自动推断
console.log(aa.toUpperCase());
var ChangeNameToUpper = function (name) {
    var aa = name.toUpperCase();
    return aa;
};
console.log(ChangeNameToUpper("sss"));
console.log(ChangeNameToUpper("yyy"));

